package czy.demo.pojo;


import czy.demo.pojo.system.User;
import org.springframework.data.annotation.*;

import java.util.Date;

/* 实体基类 */
public class BaseEntity {

    /* 实体创建者 */
    @CreatedBy
    private User createUser;

    /* 实体创建时间 */
    @CreatedDate
    private Date createDate;

    /* 最后一次更新者 */
    @LastModifiedBy
    private User lastModifiedBy;

    /* 最后一次更新时间 */
    @LastModifiedDate
    private Date lastModifiedDate;

    /* 版本 */
    @Version
    private Integer version;

    public User getCreateUser() {
        return createUser;
    }

    public void setCreateUser(User createUser) {
        this.createUser = createUser;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public User getLastModifiedBy() {
        return lastModifiedBy;
    }

    public void setLastModifiedBy(User lastModifiedBy) {
        this.lastModifiedBy = lastModifiedBy;
    }

    public Date getLastModifiedDate() {
        return lastModifiedDate;
    }

    public void setLastModifiedDate(Date lastModifiedDate) {
        this.lastModifiedDate = lastModifiedDate;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
}
